<template>
  <button type="button" @click="isShow = !isShow">显示/隐藏</button>
  <Demo v-if="isShow" />
</template>

<script>
import { ref } from 'vue'
import Demo from './components/Demo.vue'

export default {
  name: 'App',
  components: {
    Demo
  },
  setup() {
    let isShow = ref(false)

    return {
      isShow
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
